<template>
    <div class="container">


        <div class="content">
            <!-- <div class="page-header"> -->
            <span style="width: 800px;display: flex;align-items: center;">
                <router-link class="back-link" to="/main">
                    <i class="el-icon-arrow-left"></i>
                    返回
                </router-link>
                <!-- <h1>人事管理系统</h1> -->
            </span>
            <!-- </div> -->
            <div class="section-header">
                <div class="section-title">
                    <!-- <i class="el-icon-user"></i> 👤🗿-->
                    <span>👤</span>
                    <span>人事部</span>
                </div>
                <div class="section-desc">人力资源管理与组织发展</div>
            </div>

            <div class="button-container">
                <router-link class="nav-button" to="/main/renshi/renliziyuanguihua">
                    <!-- <i class="el-icon-s-operation"></i> -->
                    <span class="i">👔</span>
                    <span>人力资源规划</span>
                </router-link>
                <router-link class="nav-button" to="/main/renshi/banciguanli">
                    <!-- <i class="el-icon-time"></i> -->
                    <span class="i">⏰</span>
                    <span>班次管理</span>
                </router-link>
                <router-link class="nav-button" to="/main/renshi/jiaqiguanli">
                    <!-- <i class="el-icon-date"></i>⛱ 🏖-->
                    <span class="i">🏖️</span>
                    <span>假期管理</span>
                </router-link>
                <router-link class="nav-button" to="/main/renshi/tuixiujiepin">
                    <!-- <i class="el-icon-switch-button"></i> ⌚-->
                    <span class="i">👨‍🦳</span>
                    <span>退休解聘</span>
                </router-link>

                <!-- <router-link class="nav-button" to="/main/renshi/yuangongdangan"> -->
                <router-link class="nav-button" to="/main/renshi/yuangongdangan/yuangongguanli/yuangongguanli">
                    <!-- <i class="el-icon-document"></i>🗃📑 -->
                    <span class="i">🪪</span>
                    <span>员工档案</span>
                </router-link>
                <router-link class="nav-button" to="/main/biao">
                    <!-- <i class="el-icon-user-solid"></i> -->
                    <span class="i">🧑‍💼</span>
                    <span>招聘管理</span>
                </router-link>
                <router-link class="nav-button" to="/main/renshi/renshidiaodong">
                    <!-- <i class="el-icon-refresh"></i> ♾️-->
                    <span class="i">🔄</span>
                    <span>人事调动</span>
                </router-link>
                <router-link class="nav-button" to="/main/renshi/kaoqing">
                    <!-- <i class="el-icon-timer">🤛💳</i> -->
                    <span class="i">📼</span>
                    <span>考勤管理</span>
                </router-link>
                <router-link class="nav-button" to="/main/renshi/jixiao">
                    <!-- <i class="el-icon-medal"></i> -->
                    <span class="i">🏅</span>
                    <span>绩效考核</span>
                </router-link>
                <router-link class="nav-button" to="/main/renshi/danganguanli">
                    <!-- <i class="el-icon-folder"></i>📂 📁-->
                    <span class="i">🗃️</span>
                    <span>档案管理</span>
                </router-link>
                <router-link class="nav-button" to="/main/renshi/renshizhidu">
                    <!-- <i class="el-icon-setting"></i> -->
                    <span class="i">⚙️</span>
                    <span>人事制度</span>
                </router-link>
                <router-link class="nav-button" to="#">
                    <!-- <router-link class="nav-button" to="/main/renshi/jiaqingfenxi"> -->
                    <!-- <i class="el-icon-s-data"></i> -->
                    <span class="i">🎓</span>
                    <span>培训管理</span>
                </router-link>
                <router-link class="nav-button" to="#">
                    <!-- <router-link class="nav-button" to="/main/renshi/jiaqingfenxi"> -->
                    <!-- <i class="el-icon-s-data"></i> -->
                    <span class="i">📈</span>
                    <span>统计分析</span>
                    <!-- 入职人员统计
            在职人员统计
            离职人员统计
            人事调动统计
            合同签订统计
            员工奖惩统计
            招聘录用统计
            员工培训统计
            人事编制统计
            人事结构统计 -->
                </router-link>
                <!-- <router-link class="nav-button" to="/main/renshi/jiaqingfenxi">
            <i class="el-icon-data-analysis"></i>
            <span>假勤分析</span>
          </router-link> -->
            </div>
        </div>
    </div>
</template>

<style lang="scss" scoped>
.container {
    min-height: 100vh;
    background-color: antiquewhite;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;

    .i {
        font-size: 24px !important;
        margin-bottom: 12px;
        transition: all 0.3s ease
    }

    .content {
        background-color: #fff;
        border-radius: 8px 8px 8px 8px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
        padding: 25px;
        // height: calc(100vh - 160px);

        width: 800px;
        margin: 0 auto;

        .section-header {
            text-align: center;
            margin-bottom: 20px;

            .section-title {
                display: inline-flex;
                align-items: center;
                background: linear-gradient(135deg, #409EFF, #66b1ff);
                color: white;
                padding: 12px 24px;
                border-radius: 10px;
                margin-bottom: 30px;
                box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);

                i {
                    margin-right: 8px;
                    font-size: 20px;
                }

                span {
                    font-size: 25px;
                    font-weight: 500;
                }
            }

            .section-desc {
                color: #909399;
                font-size: 14px;
            }
        }

        .page-header {
            display: flex;
            align-items: center;
            justify-content: center;
            // margin-bottom: 24px;
            background-color: #fff;
            padding: 16px 24px;
            border-radius: 8px 8px 0px 0px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
            width: 800px;
            margin: 0 auto;


        }

        .back-link {
            // display: flex;
            align-items: center;
            text-decoration: none;
            color: #409EFF;
            font-size: 14px;
            margin-right: 20px;
            transition: all 0.3s;

            i {
                margin-right: 5px;
            }

            &:hover {
                opacity: 0.8;
            }
        }

        h1 {
            margin: 0;
            font-size: 20px;
            font-weight: 500;
            color: #303133;
        }

        .button-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            width: 800px;
            margin: 0px auto;
            gap: 20px;
            // padding: 5px 20px;

            .nav-button {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-decoration: none;
                background-color: #f5f7fa;
                color: #606266;
                padding: 24px;
                border-radius: 8px;
                transition: all 0.3s ease;
                border: 1px solid #ebeef5;
                // height: 120px;

                i {
                    font-size: 24px;
                    margin-bottom: 12px;
                    color: #409EFF;
                    transition: all 0.3s ease;
                }

                span {
                    font-size: 16px;
                    font-weight: 500;
                }

                &:hover {
                    transform: translateY(-5px);
                    background-color: #ecf5ff;
                    border-color: #409EFF;
                    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1);

                    i {
                        transform: scale(1.2);
                    }

                    span {
                        color: #409EFF;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 12px;

        .page-header {
            padding: 12px 16px;
        }

        .content {
            padding: 20px 16px;

            .section-header {
                margin-bottom: 24px;

                .section-title {
                    padding: 8px 16px;

                    i {
                        font-size: 18px;
                    }

                    span {
                        font-size: 16px;
                    }
                }
            }

            .button-container {
                grid-template-columns: 1fr;
                padding: 0;

                .nav-button {
                    padding: 16px;
                    height: auto;
                    flex-direction: row;
                    justify-content: flex-start;

                    i {
                        margin-bottom: 0;
                        margin-right: 12px;
                    }
                }
            }
        }
    }
}
</style>